<!--
  * 角色 按钮/页签
-->
<template>
  <div class="point">
    <div class="point-label">
      <template v-for="module in props.tree" :key="module.id">
        <a-checkbox v-if="!module.flagOne" @change="emits('selectCheckbox', module)" :value="module.id">{{ module.name }} </a-checkbox>
      </template>
    </div>
  </div>
</template>
<script setup lang="ts">
  const props = defineProps({
    tree: {
      type: Array,
      default: [],
    },
    index: {
      type: Number,
      default: 0,
    },
  });
  let emits = defineEmits('selectCheckbox');
</script>
<style scoped lang="less"></style>
